{extend name="base:base" /}
{block name="body"}



<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card layui-form">



                <div class="layui-card-body">

                    <a class="layui-btn layui-btn-normal openbox" href="{:url('menu_add')}"><i class="layui-icon layui-icon-add-1"></i>添加</a>

                </div>

                <div class="layui-card-body">
                    <table lay-even="" class="layui-table">
                        <thead>
                            <tr>
                                <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" value="0"></th>




                                <?php
                                foreach (config('feedback') as $key => $value) {
                                    ?>
                                    <th><?php echo $value; ?></th>
                                <?php } ?>




                                <th>时间</th>



                            </tr>
                        </thead>
                        <tbody>




                            <?php
                            foreach ($lists as $key => $value) {
                                ?>
                                <tr>

                                    <td>
                                        <input type="checkbox" name="ids[]" title="" lay-skin="primary" value='<?php echo $value['id']; ?>' /> 
                                    </td>

                                    <?php foreach (config('feedback') as $key2 => $value2) { ?>
                                        <td> <?php echo $value[$key2] ?? '' ?>  </td>
                                    <?php } ?>



                                    <td> <?php echo date('Y/m/d H:i:s', $value['create_time']); ?> </td>
                                </tr>
                            <?php } ?>


                        </tbody>
                    </table>
                </div>


                <div class="layui-card-body">


                    <div class="page pull-right">
                        {$page}
                    </div>


                    <button class="layui-btn layui-btn-danger" lay-submit lay-filter="button_submit" href="<?php echo url('feedback_deletes'); ?>" ><i class="layui-icon layui-icon-delete"></i>删除选中</button>




                </div>



            </div>
        </div>
    </div>
</div>


{/block}